|
dcmotor6 2.2.0
|
Functions | |
| void | dcmotor6_cfg_setup (dcmotor6_cfg_t *cfg) |
| Config Object Initialization function. | |
| DCMOTOR6_RETVAL | dcmotor6_init (dcmotor6_t *ctx, dcmotor6_cfg_t *cfg) |
| Initialization function. | |
| void | dcmotor6_set_in1_pin (dcmotor6_t *ctx, uint8_t state) |
| Set IN1 pin. | |
| void | dcmotor6_set_in2_pin (dcmotor6_t *ctx, uint8_t state) |
| Set IN1 pin. | |
| void | dcmotor6_set_direction (dcmotor6_t *ctx, uint8_t dir) |
| Set motor Direction. | |
| void dcmotor6_cfg_setup | ( | dcmotor6_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| DCMOTOR6_RETVAL dcmotor6_init | ( | dcmotor6_t * | ctx, |
| dcmotor6_cfg_t * | cfg ) |
Initialization function.
| ctx | Click object. |
| cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this Click.
| void dcmotor6_set_direction | ( | dcmotor6_t * | ctx, |
| uint8_t | dir ) |
Set motor Direction.
| ctx | Click object. |
| dir | Motor direction (Forward, Reverse, Brake or Stop) |
| void dcmotor6_set_in1_pin | ( | dcmotor6_t * | ctx, |
| uint8_t | state ) |
Set IN1 pin.
| ctx | Click object. |
| state | Pin state |
| void dcmotor6_set_in2_pin | ( | dcmotor6_t * | ctx, |
| uint8_t | state ) |
Set IN1 pin.
| ctx | Click object. |
| state | Pin state |